﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <style>
        th{
            text-align:center
        }
        td{
            text-align:center;
            width:200px;
        }
    </style>
       <asp:Button  runat="server" ID="btnAdd" Text="添加" OnClick="btnAdd_Click" Height="108px" Width="900px"/>
        <asp:GridView runat="server" ID="GridTask" AutoGenerateColumns="false" AllowPaging="true" OnRowDeleting="GridTask_RowDeleting" OnRowEditing="GridTask_RowEditing" OnPageIndexChanging="GridTask_PageIndexChanging" OnRowCommand="GridTask_RowCommand">
            <Columns>
                <asp:BoundField  DataField="Id" HeaderText="Id"/>
                <asp:BoundField  DataField="TaskName" HeaderText="任务名称"/>
                <asp:BoundField  DataField="TaskContent" HeaderText="任务内容"/>
                <asp:BoundField  DataField="TaskStatus" HeaderText="状态"/>
                <asp:BoundField  DataField="Remarks" HeaderText="备注" />
                <asp:ButtonField HeaderText="详情" ButtonType="Link" Text="详情" CommandName="detial" /> 
                <asp:CommandField HeaderText="顶级操作" ShowEditButton="true" ShowDeleteButton="true" />
            </Columns>
        </asp:GridView>
</asp:Content>
